graph LR;
A[Start] --> B[Do Something];
B --> C{Is it Done?};
C -->|Yes| D[End];
C -->|No| B;
Sample Mermaid Diagram in Quarto
This QMD file will render a simple Mermaid flowchart when compiled with Quarto. You can experiment by modifying the Mermaid diagram to include different shapes, arrows, and labels to suit your needs.
Experimenting with Mermaid Diagrams
This is a simple example of how to include a Mermaid diagram in a Quarto document.
Explanation
YAML Front Matter: The front matter at the top (
---section) specifies the document’s metadata, such as the title and output format. In this case, it’s set tohtmlformat.Mermaid Diagram: The Mermaid diagram is included within a code block labeled
mermaid. The diagram itself is a flowchart with nodes and directed edges.